<template>
  <el-config-provider :locale="zhCn">
    <router-view class="router" id="app" v-slot="{ Component, route }">
      <keep-alive>
        <component :is="Component" :key="route.name" />
      </keep-alive>
    </router-view>
  </el-config-provider>
</template>
<script lang="ts" setup>
import zhCn from 'element-plus/es/locale/lang/zh-cn'
</script>
<style lang="scss">
#app {
  width: 100%;
  height: 100%;

  > .router {
    width: 100%;
    height: 100%;
  }
}
</style>
